package main

import "fmt"

func calculatePriceAfterDicount(price float64, discountrate float64) float64 {
	newPrice := price - (price * discountrate)
	return newPrice
}

func main() {
	var coffeePrice float64 = 5.00
	var discount float64 = 0.10
	fmt.Printf("Basic coffee price:%.2f\n", coffeePrice)
	coffeePrice = calculatePriceAfterDicount(coffeePrice, discount)
	fmt.Printf("Price with discount:%.2f\n", coffeePrice)
}
